﻿function initialize() {
    var latLong = new google.maps.LatLng(-27.5311255, 153.0138738);
    var mapOptions = {
        center: latLong,
        zoom: 12,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }

    var mapCanvas = document.getElementById('map-canvas');
    var map = new google.maps.Map(mapCanvas, mapOptions)
    
    var marker = new google.maps.Marker({
        position: latLong,
        map: map,
        title: 'Yeerongpilly Greens'
    });
}


function loadScript()
{
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp' + '&signed_in=true&callback=initialize';
    document.body.appendChild(script);
}

window.onload = loadScript;


